function getQueryString(name) {
	var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
	var r = window.location.search.substr(1).match(reg);
	if(r != null) {
		return unescape(r[2]);
	}
	return null;
}

function reflash() {
	window.location.reload();
}

function toPureString(str) {
	if(str == null)
		return null;
	return str.replace(/<p>/g, "").replace(/<\/p>/g, "").replace(/<br>/g, "");

}

function contentCut(str, index) {
	if(str == null) {
		return str;
	}
	var cuted = str.substr(0, index);
	return cuted + "...";
}